{% load blog_extras links_extras prefab_tags cache  i18n  %}
{% load urchin       %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ca" lang="ca">
    <head>
        <meta content="text/html; charset=utf-8" http-equiv="content-type"/>
        <meta content="no-cache" http-equiv="cache-control"/>
        <meta content="3600" http-equiv="expires"/>
        <meta content="2 days" name="revisit-after"/>
        <meta content="index,follow" name="robots"/>
        <meta content="trespams.com" name="publisher"/>
        <meta content="Antoni Aloy - Llicència creative commons attribution" name="copyright"/>
        <meta content="Content by: aaloy, design: Wolfgang (www.1-2-3-4.info), hosted in APSL" name="author"/>
        <meta content="global" name="distribution"/>
    	{% setting 'WEBMASTER_META' %}
		<meta content="Trespams és el blog d'Antoni Aloy. Els continguts estan sota llicència cc attribution." name="description"/>
		<meta name="description" content="Blog d'Antoni Aloy dedicat la programació i a la vida" />
        <meta content="python,django,projectes,programacio,web,css,java,pojo,apsl,development,j2ee,linux,sistemes" name="keywords"/>    
        <link type="text/css" rel="stylesheet" href="/media/css/sh_style.css"></link>
        <link rel="stylesheet" type="text/css" href="{% setting 'MEDIA_URL' %}css/layout2_setup.css" />
        <link rel="stylesheet" type="text/css" href="{% setting 'MEDIA_URL' %}css/layout2_text.css" />
        {% block "extrastyle" %}
        {% endblock %}
        {% block common_js %}
        <script type="text/javascript" src="/media/js/jquery.js"></script>
        <script type="text/javascript" src="/media/js/animatedcollapse.js"></script>
        {% endblock common_js %}
        <link href="/media/img/favicon.ico" type="image/x-icon" rel="icon"/>
        {% block pagetitle %}
        {% if object.headline %}
			<title>{% setting 'BLOG_NAME'%}: {{ object.headline }}</title>
			<meta name="description" content="{{object.body|striptags|truncatewords:50}}" />
        {% else %}
            <title>{% setting 'BLOG_NAME' %}</title>        
        {% endif %}
        {% endblock pagetitle %}
        </head>    
    <body>        
        {% block page-container %}
        <div class="page-container">
            <div class="header">
                <div class="header-top">      
                    <a class="sitelogo2" title="inici" href="{% setting 'BLOG_ROOT' %}"></a>
                    <div class="sitename">
                        <h1>
                            <a href="{% setting 'BLOG_ROOT' %}">{% setting 'BLOG_NAME' %}</a>       
                        </h1>
                        <h2>{% setting 'BLOG_SUBTITLE' %}</h2>
                    </div>
                    <div class="nav0"></div>
                    <div class="nav1"></div>       
                </div>
                <!--<div class="header-middle"></div>-->
                <div class="header-bottom">
                    <div class="nav2">
                        <ul><li><a href="/">Index</a></li><li><a href="#">{% trans "De visita obligada" %}</a>
                                <ul>

                                    <li><a href="#" title="title">{% trans "link name" %}</a></li>
                                </ul>
                            </li>                    
                        </ul>
                        <ul><li><a href="#">{% trans "Administraci&oacute;" %}</a>
                                <ul>                            
                                    {% if not user.is_authenticated %}
                                    <li><a href="/admin/">Login</a></li>
                                    {% else %}
                                    <li><a href="/tools/entry/add">{% trans "Nou post" %}</a></li>
                                    <li><a href="/tools/entry/">{% trans "Posts" %}</a></li>
                                    <li><a href="/admin/logout/">{% trans "Logout "%}{{user.username}}</a></li>
                                    {% endif %}
                                </ul>
                            </li>
                        </ul>
                        {% if user.is_authenticated %}
                        <ul><li><a href="#">{{user.username}}</a></li></ul>
                        {% endif %}
                    </div> <!-- nav2 -->
                </div><!-- header-bottom -->
            </div> <!-- header-->
            <div class="main">
                <div class="main-navigation">
                    {% block recent %}
                    {% endblock recent %}                    
                </div> <!-- main navigation-->
                <div class="main-content">
                    {% block content %}
                    {% endblock content %}                    
                </div> <!--main content-->
            </div><!-- main -->            
            {% block footer %}
            {% endblock footer %}
        </div> <!-- page container -->        
        {% endblock page-container %}
		{% block syntaxhighlighter %}
		{% endblock syntaxhighlighter %}
        {% block extra-javascript %}
        {% endblock extra-javascript%}    
		{% urchin "settings" %}    
    </body>
</html>
